package com.zxiw.zxedu.recyclerview.listener

import androidx.recyclerview.widget.RecyclerView

/**
 * @author zhangxiaoming
 * @date 2023/8/17
 * @description 设置拖拽监听
 */
interface OnItemDragListener {
    fun onItemDragStart(viewHolder: RecyclerView.ViewHolder, pos: Int)
    fun onItemDragMoving(
        source: RecyclerView.ViewHolder,
        from: Int,
        target: RecyclerView.ViewHolder,
        to: Int
    )

    fun onItemDragEnd(viewHolder: RecyclerView.ViewHolder, pos: Int)
}